package com.example.dirviesystem.repository;

import com.example.dirviesystem.entity.ApplicationForm;
import com.example.dirviesystem.entity.StudentInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ApplicationFormRe extends JpaRepository<ApplicationForm, Long>, JpaSpecificationExecutor<ApplicationForm> {
    ApplicationForm findByStudentId(Long studentId);
    List<ApplicationForm> findByApproved(boolean approved);
}

